package com.ht.modules.device.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *  水表设备天数据
 * @Author:
 * @Date: 2025-03-25
 * @Version: V1.0
 */
@Data
@TableName("sk_device_water_day")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DeviceWaterDay {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 设备ID
     */
    private Integer deviceId;
    /**
     * 日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.util.Date dateTime;
    /**
     * 值
     */
    private java.math.BigDecimal value;

    @TableField(exist = false)
    private String deviceName;
    // ---------- 导入字段 ----------

}
